//
//  LSZVideoManager.m
//  JK九酷云头条
//
//  Created by 九酷 on 2017/11/6.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZVideoManager.h"

@implementation LSZVideoManager
-(id)initWithVideoManager:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
         self.mutMgArray  = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
 
        NSMutableArray * mutMgArrayDic = [[NSMutableArray alloc]init];
        for (NSDictionary * dic in  arrayData) {
            LSZVideoMg * mg = [[LSZVideoMg alloc]init];
            NSString * strTitle =  [NSString stringWithFormat:@"%@",dic[@"id"]];
            NSString * strID =  [NSString stringWithFormat:@"%@",dic[@"cate"]];

            mg.id_id = strTitle;
            mg.cate = strID;
           [mutMgArrayDic addObject:mg];
        }
        self.mutMgArray = mutMgArrayDic;
    }
    return self;
}
@end

@implementation LSZVideoMg

@end
